import asyncio
import sys

idx = int(sys.argv[1])
fps = int(sys.argv[2])

async def fun():
	a2f_tool = omni.audio2face.tool.get_ext()
	exp=a2f_tool._exporter
	await a2f_tool._a2f_player .get_first_instance()._select_audio_track_async(idx)
	
	exp.set_export_fps(fps)
	exp.gather_export_meshes()
	exp.find_source_a2f_and_player_nodes() 
	await exp._run_export_blendshape_weights_json_async()
	
asyncio.ensure_future(fun())















